#include "bsp_main.h"

void app_main(void)
{
    
    bsp_main_init();

    // /* 主线程 */
    xTaskCreate(task_sysmain, "task_sysmain", 2048, NULL, 10, NULL);
    // /* 温度监控线程 */
    xTaskCreate(task_temp, "task_temp", 2048, NULL, 10, NULL);
    xTaskCreate(uart_event_task, "uart_event_task", 2048, NULL, 12, NULL);
    xTaskCreate(&http_task, "http_task", 2048*4, NULL, 10, NULL);

    // /* 计时中断 */
    mygptimer1_init(my_timer_on_alarm_cb);
    mygptimer2_init(my_timer_on_alarm_cb2);
    int cnt = 0;
    while(1){
        printf("cnt: %d\n", cnt++);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }


}

